package cn.admin.config.common.lang.enumeration;

import cn.admin.config.common.lang.exception.ChainedThrowable;

import java.io.PrintWriter;

public class CreateEnumException extends IllegalArgumentException
        implements ChainedThrowable {

    private Throwable cause;

    public CreateEnumException() {
    }

    public CreateEnumException(String message,Throwable cause) {
        super(message);
        this.cause = cause;
    }

    public CreateEnumException(String message) {
        super(message);
    }

    public CreateEnumException(Throwable cause) {
        super(cause == null ? null : cause.getMessage());
        this.cause = cause;
    }


    @Override
    public void printCurrentStackTrace(PrintWriter p) {

    }

    //TODO


}
